<%@ page pageEncoding="UTF-8" %>
<div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
        <ul class="am-list admin-sidebar-list">
            <li class="admin-parent">
                <a class="am-cf" data-am-collapse="{target: '#collapse-nav1'}"> 项目管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav1">
                    <li id="collapse-nav11"><a href="${ctx}/project/projectPage"     			id="project"            > 项目管理 </a></li>
                    <li id="collapse-nav12"><a href="${ctx}/project/projectQueryPage"			id="project_query"      > 项目查询 </a></li>
                    <c:if test="${sessionScope.permission == 2}">
                   		<li id="collapse-nav13"><a href="${ctx}/project/projectQueryPageAdmin"	id="project_query_admin"> 管理员项目管理 </a></li>
                    </c:if>
                </ul>
            </li>
            <li class="admin-parent">
                <a class="am-cf" data-am-collapse="{target: '#collapse-nav2'}"> 档案管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav2">
                	<c:if test="${sessionScope.permission == 1 || sessionScope.permission == 2}">
                    	<li id="collapse-nav21"><a href="${ctx}/company/all" 			id="arch_company"				> 部门管理 </a></li>
						<li id="collapse-nav22"><a href="${ctx}/position/all" 			id="arch_post"					> 职务管理 </a></li>
                   	</c:if>
					<li id="collapse-nav23"><a href="${ctx}/staff/all" 				id="arch_staff"					> 员工管理 </a></li>
					<li id="collapse-nav24"><a href="${ctx}/customer/company/all" 	id="arch_customer_company"		> 客户公司管理 </a></li>
					<li id="collapse-nav25"><a href="${ctx}/customer/all" 			id="arch_customer_contacts"		> 客户联系人管理 </a></li>
					<li id="collapse-nav26"><a href="${ctx}/partner/company/all" 	id="arch_supplier_company"		> 供应商公司管理 </a></li>
					<li id="collapse-nav27"><a href="${ctx}/partner/product/all" 	id="arch_supplier_product"		> 供应商产品管理 </a></li>
					<li id="collapse-nav28"><a href="${ctx}/partner/contact/all" 	id="arch_supplier_contacts"		> 供应商联系人管理 </a></li>
                </ul>
            </li>
            <li class="admin-parent">
                <a class="am-cf" data-am-collapse="{target: '#collapse-nav3'}"> 报表管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
                <ul class="am-list am-collapse admin-sidebar-sub" id="collapse-nav3">
                    <c:if test="${sessionScope.permission == 1 || sessionScope.permission == 2}">
                    	<li id="collapse-nav31"><a href="${ctx}/customerReport"   id="report_customer" 		> 客户销售业绩表 </a></li>
                    </c:if>
                    <li id="collapse-nav32"><a href="${ctx}/staffReport"      id="report_staff"    		> 员工销售业绩表 </a></li>
                    <c:if test="${sessionScope.permission == 1 || sessionScope.permission == 2}">
                    	<li id="collapse-nav33"><a href="${ctx}/companyReport"    id="report_company"  		> 部门销售业绩表 </a></li>
                    </c:if>
                    <li id="collapse-nav34"><a href="${ctx}/projectReport"    id="report_project"  		> 销售机会表 </a></li>
                    <c:if test="${sessionScope.permission == 1 || sessionScope.permission == 2}">
                    	<li id="collapse-nav35"><a href="${ctx}/notPaymentReport" id="report_not_payment" 	> 未回款统计表 </a></li>
                    </c:if>
                </ul>
            </li>
        </ul>
    </div>
</div>
<script type="text/javascript">
$(function(){
	if (PAGE_CONFIG.MENU_INDEX) {
		$('#collapse-nav' + PAGE_CONFIG.MENU_INDEX).addClass('am-in');
		$('#collapse-nav' + PAGE_CONFIG.MENU_INDEX+ PAGE_CONFIG.LI_INDEX).css({background:"#ddd"});
	}
});
</script>